var $checktree;
$(function(){
    $checktree = $("ul.tree").checkTree('collapse');
});
			
function clearAll(){
    $checktree.clear();
    $checktree.update();
}